//
//  LYDFactory.m
//  20150809生活圈
//
//  Created by yons on 15/8/10.
//  Copyright (c) 2015年 iron. All rights reserved.
//

#import "LYDFactory.h"

@implementation LYDFactory

+ (UIButton *)LYDButtonwithType:(LYDButtonType)type
                     WithFrame:(CGRect)rect
                     withTitle:(NSString *)title
                       withTag:(NSInteger)tag{
    
    UIButton *item = [UIButton buttonWithType:UIButtonTypeCustom];
    
    item.frame = rect;
    
    [item setTitle:title forState:UIControlStateNormal];
    
    item.tag = tag;
    
    if (type == LYDNormalButton) {
        
    }else if (type == LYDCornerButton){
        item.layer.cornerRadius = 5;
    }
//    }else if (type == 2){
//        item.backgroundColor = [UIColor whiteColor];
//    }
    
    return item;
}

@end
